DEPLOY_DIR="/export/data/www/culture/"
GIT_DIR="/home/eng/git/culture/"
cd $GIT_DIR
git pull
git fetch origin
git merge origin/develop
sudo /usr/bin/rsync -av --exclude=deploy.sh --exclude=".git" --exclude="shuipf/Common/Conf/dataconfig.php" --exclude="phpmig.php" --exclude=d $GIT_DIR $DEPLOY_DIR
sudo chown -R nginx:nginx $DEPLOY_DIR
cd $DEPLOY_DIR/
./bin/phpmig migrate
cd \#runtime
sudo rm -rf *
cd -
